package com.tsd.system.dao;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysSetting;
import com.tsd.system.entity.SysSettingExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysSettingMapper
 *
 * @author david
 * @date 2021/07/15 10:35:26
 */
public interface SysSettingMapper {

    SysSetting selectByPrimaryKey(Long id);

    SysSettingExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(SysSetting record);

    int insertSelective(SysSetting record);

    int insertList(List<SysSetting> list);

    int updateByPrimaryKey(SysSetting record);

    int updateByPrimaryKeySelective(SysSetting record);

    List<SysSettingExt> selectByEntity(SysSetting record);

    List<SysSettingExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysSettingExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysSettingExt> selectByParams(@Param("params") Map<String, Object> params);

    SysSettingExt selectByCodeOwnerSid(SysSettingExt query);
}
